Point

class Point(source)

A point within the progress bar, defining its position and color. Points within a progress bar are used to visualize distinct stages or milestones. For example, you might use points to mark stops in a multi-stop navigation journey, where each point represents a destination.

Constructors

Link copied to clipboard
constructor(@IntRange(from = 1) position: Int)
Create a point element.

Functions

Link copied to clipboard
open fun getColor(): Int
Returns the color of this Segment.
Link copied to clipboard
open fun getId(): Int
Optional ID used to uniquely identify the element across updates.
Link copied to clipboard
@IntRange(from = 1)
open fun getPosition(): Int
Gets the position of this Point.
Link copied to clipboard
@NonNull
open fun setColor(@ColorInt color: Int): @NonNull NotificationCompat.ProgressStyle.Point
Optional color of this Segment
Link copied to clipboard
@NonNull
open fun setId(id: Int): @NonNull NotificationCompat.ProgressStyle.Point
Optional ID used to uniquely identify the element across updates.